const gulp = require('gulp');
const gulp_uglify = require('gulp-uglify');
const gulp_minCss = require('gulp-minify-css');
const gulp_imgMin = require('gulp-imagemin');
// 压缩js
gulp.task("_uglify", function() {
    gulp.src("js/**/*").pipe(gulp_uglify()).pipe(gulp.dest("js1"));
});
// 压缩css
gulp.task("_minCss", function() {
    gulp.src("css/**/*").pipe(gulp_minCss()).pipe(gulp.dest("css1"));
});
// 压缩图片
gulp.task("_minImg", function() {
    gulp.src("img/**/*").pipe(gulp_imgMin()).pipe(gulp.dest("images1"));
});